<template>
  <!-- <nav>公共顶部通栏</nav> -->
  <AppTopnav/>
  <AppHeader/>
  <AppHeaderSticky/>
  <main class="app-body">
    <router-view></router-view>
  </main>
  <AppFooter/>
</template>

<script>
import AppHeaderSticky from '@/components/app-header-sticky.vue'
import AppTopnav from '@/components/app-topnav'
import AppHeader from '@/components/app-header'
import AppFooter from '@/components/app-footer'
import { useStore } from 'vuex'
export default {
  components: {
    AppTopnav,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  },
  name: 'layout',
  // 获取下分类数据
  setup () {
    const store = useStore()
    store.dispatch('category/getList')
  }
}
</script>

<style scoped lang="less">
.app-body {
 min-height: 600px;
}
</style>
